package process.module;

import com.google.common.eventbus.EventBus;

public class PswEventBus {
	private static PswEventBus instance;
	private EventBus eventBus;
	
	private PswEventBus() {
		eventBus = new EventBus();
	}

	public static PswEventBus getInstance() {
		if (instance == null) {
			synchronized (PswEventBus.class) {
				if (instance == null) {
					instance = new PswEventBus();
				}
			}
		}
		return instance;
	}

	public EventBus getEventBus() {
		return eventBus;
	}

	public void setEventBus(EventBus eventBus) {
		this.eventBus = eventBus;
	}

}
